export let formlayer = {
    main:`
    <%if type=="ui-form2"%>
        <form class="<%type%>" action="<%url%>" data-form-options="${require('../../platform/a.appList/adjust/formopt',true).name}">
        <%each tpl item%>
            <%include 'item'%>
        <%/each%>
        </form>
    <%/if%>
    `,
    item:`
    <%if item.field??%>
        <%var tmp = item.field.split('.')%>
    <%/if%>
    <%if item.type=='hidden'%>
    <input type="hidden" name="<%item.name%>" value="<%data[tmp[0]][tmp[1]]%>" >    
    <%else%>   
        <div class="ui-item e-mt15">         
        <span>
            <%if item.field??%>
                <%var tmp = item.field.split('.')%>
            <%/if%>
            <i class="<%item.xing??%>">*</i>
            <label class="ui-label"><%item.label%></label>
            <%if item.type=='select2'%>
                <div class="f-pr Tag ui-input ui-input-170 f-dib">
                    <div class="con"><div class="Wrap"></div></div>
                    <input type="text" unselectable="on" class="noinput" readonly  data-fieldid="appType" data-select2-options="${require('./selectMode',true).name}" data-multiple="N" data-source="appTypetmp" >
                    <b class="iconfont dir"></b>
                </div>
            <%elseif item.type=='text'%>
                <span class="company f-dib"><%data[tmp[0]][tmp[1]]%> </span>
            <%elseif item.type == 'tree'%>
                <div class="tree" ></div>
            <%elseif item.type == 'number'%>
                <input name="<%item.name%>" class="ui-input ui-input-170" data-number-options='{"integer":13, "minus":true,max:1000000}' value="<%data[tmp[0]][tmp[1]]%>" <%if item.rule%>data-rule="<%item.rule%>" data-message="<%item.message%>"<%/if%>>
                <div class="err"></div>            
            <%elseif item.type == 'textarea'%>
                <textarea name="<%item.name%>" placeholder="请写调整意见，10~50汉字" <%if item.rule%>data-rule="<%item.rule%>" data-message="<%item.message%>"<%/if%>></textarea>
                <div class="err textarea"></div>
            <%/if%>
        </span>
        </div>    
    <%/if%>
    
    `
}